package cn.stylefeng.guns.user.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * user
 *
 * @author aria
 * @date 2021/02/20 20:24
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UserParam extends BaseParam {

    /**
     * 用户编号
     */
    @NotNull(message = "用户编号不能为空",groups = {edit.class})
    private Integer userId;

    /**
     * 用户名
     */
    @NotNull(message = "用户名不能为空",groups = {add.class})
    private String userName;

    /**
     * 密码
     */
    @NotNull(message = "密码不能为空",groups = {add.class})
    private String password;

    /**
     * 性别
     */
    //@NotNull(message = "性别不能为空",groups = {add.class,edit.class})
    private Integer sex;

    /**
     * 头像
     */
    //@NotNull(message = "头像不能为空",groups = {add.class,edit.class})
    private String userImage;

    /**
     * 生日
     */
    //@NotNull(message = "生日不能为空",groups = {add.class,edit.class})
    private Date birthday;

    /**
     * 昵称
     */
    //@NotNull(message = "昵称不能为空",groups = {add.class,edit.class})
    private String nick;

    /**
     * 是否为管理员
     */
    //@NotNull(message = "是否为管理员不能为空",groups = {add.class,edit.class})
    private Integer power;

    private String address;

}
